<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{mmItemGroupSubBean.page}"/>
		<f:event type="preRenderView" listener="#{mmItemGroupSubBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Mm Item Group Sub entities"/>

	<ui:define name="header">
		Mm Item Group Sub
	</ui:define>

	<ui:define name="subheader">
		Search Mm Item Group Sub entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="mmItemGroupSubBeanExampleMmItemGroupByItemGroupNo" value="Mm Item Group By Item Group No:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmItemGroupBean.converter}" id="mmItemGroupSubBeanExampleMmItemGroupByItemGroupNo" value="#{mmItemGroupSubBean.example.mmItemGroupByItemGroupNo}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemGroupBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="mmItemGroupSubBeanExampleMmItemGroupByItemGroupNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupSubBeanExampleMmItemGroupBySubItemGroupNo" value="Mm Item Group By Sub Item Group No:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmItemGroupBean.converter}" id="mmItemGroupSubBeanExampleMmItemGroupBySubItemGroupNo" value="#{mmItemGroupSubBean.example.mmItemGroupBySubItemGroupNo}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemGroupBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="mmItemGroupSubBeanExampleMmItemGroupBySubItemGroupNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="mmItemGroupSubBeanExampleSubItemGroupDescr" value="Sub Item Group Descr:"/>
						<h:panelGroup>
							<h:inputText id="mmItemGroupSubBeanExampleSubItemGroupDescr" maxLength="300" value="#{mmItemGroupSubBean.example.subItemGroupDescr}"/>
							<h:message for="mmItemGroupSubBeanExampleSubItemGroupDescr" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{mmItemGroupSubBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{mmItemGroupSubBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="mmItemGroupSubBeanPageItems" styleClass="data-table" value="#{mmItemGroupSubBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Mm Item Group By Item Group No"/>
					</f:facet>
					<h:link outcome="/mmItemGroupSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemMmItemGroupByItemGroupNo" value="#{forgeview:display(_item.mmItemGroupByItemGroupNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Mm Item Group By Sub Item Group No"/>
					</f:facet>
					<h:link outcome="/mmItemGroupSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemMmItemGroupBySubItemGroupNo" value="#{forgeview:display(_item.mmItemGroupBySubItemGroupNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sub Item Group Descr"/>
					</f:facet>
					<h:link outcome="/mmItemGroupSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSubItemGroupDescr" value="#{_item.subItemGroupDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{mmItemGroupSubBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
